<form name="register" method="get">
   <input type="text" name="uname" value="<?=rand(1,1100)?>" id="" />
   <span onclick="submitFrm()">Click Here to sbmt</span>
</form>

<script type="text/javascript">


    function submitFrm()
    {
      document.register.method="POST";
      document.register.action="http://google.com";
      document.register.submit();
    }


</script>
